package org.kongqian.marketing.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.kongqian.basic.domain.BaseDomain;
import org.kongqian.sysmanager.domain.Dictionaryitem;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author kq
 * @since 2022-10-24
 */
public class Activity extends BaseDomain{

    private static final long serialVersionUID = 1L;

    private Long id;
    /**
     * 名字
     */
    private String name;
    /**
     * 活动的优惠方式-关联字典明细表的id
     */
    private Dictionaryitem dictionaryitem;
    /**
     * 活动的开始时间
     */
    private Date start_date;
    /**
     * 活动的结束时间
     */
    private Date end_date;
    /**
     * 活动的描述
     */
    private String description;
    private Date create_time;
    /**
     * 谁创建的活动
     */
    private Long create_by;
    /**
     * 记录最后一次修改时间
     */
    private Date edit_time;
    /**
     * 谁最后一次修改
     */
    private Long edit_by;

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Dictionaryitem getDictionaryitem() {
        return dictionaryitem;
    }

    public void setDictionaryitem(Dictionaryitem dictionaryitem) {
        this.dictionaryitem = dictionaryitem;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone ="GMT + 8" )
    public Date getStart_date() {
        return start_date;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setStart_date(Date start_date) {
        this.start_date = start_date;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone ="GMT + 8" )
    public Date getEnd_date() {
        return end_date;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setEnd_date(Date end_date) {
        this.end_date = end_date;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone ="GMT + 8" )
    public Date getCreate_time() {
        return create_time;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Long getCreate_by() {
        return create_by;
    }

    public void setCreate_by(Long create_by) {
        this.create_by = create_by;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone ="GMT + 8" )
    public Date getEdit_time() {
        return edit_time;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public void setEdit_time(Date edit_time) {
        this.edit_time = edit_time;
    }

    public Long getEdit_by() {
        return edit_by;
    }

    public void setEdit_by(Long edit_by) {
        this.edit_by = edit_by;
    }

    @Override
    public String toString() {
        return "Activity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", dictionaryitem=" + dictionaryitem +
                ", start_date=" + start_date +
                ", end_date=" + end_date +
                ", description='" + description + '\'' +
                ", create_time=" + create_time +
                ", create_by=" + create_by +
                ", edit_time=" + edit_time +
                ", edit_by=" + edit_by +
                '}';
    }
}
